package day03;

public class OperDemo {
    public static void main(String[] args) {
        /*
        System.out.println(5%2);//1
        System.out.println(2%5);//2
        System.out.println(4%2);//0
        int a=2,b=2;
        a++;
        ++b;
        System.out.println(a);//3
        System.out.println(b);//3

         */
        /*
        int a=5,b=5;
        int c=++a;
        int d=b++;
        System.out.println(a);//6
        System.out.println(b);//6
        System.out.println(c);//6
        System.out.println(d);//5
         */
        /*
        int a=5,b=5;
        a--;
        --b;
        System.out.println(a);//4
        System.out.println(b);//4
         */
        /*
        int a=5,b=5;
        int c=--a;
        int d=b--;
        System.out.println(a);//4
        System.out.println(b);//4
        System.out.println(c);//4
        System.out.println(d);//5
         */
        /*
        int a=5,b=10,c=5;
        boolean b1=a>b;
        System.out.println(b1);
        System.out.println(a<b);
        System.out.println(a>=c);
        System.out.println(b<=c);
        System.out.println(a==c);
        System.out.println(a!=c);
        System.out.println(a++>5);
        System.out.println(a++>5);
        System.out.println(a+c>b);
         */
        /*
        int a=5,b=10,c=5;
        System.out.println(a<b && b>c);//true &&true==true
        System.out.println(a<=c && b<c);//true && false==false
        System.out.println(a>b&&b<c);//false&&false==false
        System.out.println(a>b&&b>c);//false&&true==false
        System.out.println(a>b&&a++>5);//false
        System.out.println(a);//5
        int age=18;
        System.out.println(age>=18 && age<=65);
        System.out.println(age>=0 && age<=3);
         */
        /*
        int a=5,b=10,c=5;
        System.out.println(a>b|| a>c);//false||false
        System.out.println(a<b||a==c);//true||true
        System.out.println(a<b||b<c);//true||false
        System.out.println(a>c||a<b);//false||true
        System.out.println(a<b||a++>6);
        System.out.println(a);//5
        int score=90;
        System.out.println(score<0||score>100);
         */
        /*
        int a=5,b=10,c=5;
        boolean b1=!(a<b);
        System.out.println(b1);
        System.out.println(!(a>b));
         */
        /*
        int a=5;
        a+=10;//a=(int)(a+10)
        System.out.println(a);
        a*=2;//a=(int)(a*2)
        System.out.println(a);
        a/=2;//a=(int)(a/2)
        a%=2;
        System.out.println(a);
         */
        /*
        short s=9;
        s=(short) (s*2);
        System.out.println(s);
         */
        /*
        int age=39;
        System.out.println("age=");
        System.out.println(age);
        System.out.println("我叫WKJ"+"今年"+age+"岁了");
         */
        System.out.println();







        /*
        int num=-5;
        int flag=num>0?1:-1;
        System.out.println(flag);
        int a=9,b=-3;
        int min=a<b?a:b;
        System.out.println(min);//-3

         */
        /*
        int num=5;
        int flag=num>0?1:-1;
        System.out.println(flag);//1
        int a=5,b=9;
        int max=a>b?a:b;
        System.out.println(max);//9

         */

        /*
        int age=33;
        System.out.println("age=");
        System.out.println(age);
        System.out.println("age="+age);
        System.out.println("我今年"+age+"岁了");
        String name="kdd";
        System.out.println("大家好，我叫"+name+",今年"+age+"岁了");
        System.out.println(10+20+""+30);//3030
        System.out.println(""+10+20+30);//102030
        System.out.println(10+20+30+"");//60

         */

/*
        int a=5;
        a+=5;
        System.out.println(a);//10
        a*=3;
        System.out.println(a);//30
        a/=3;
        System.out.println(a);//10
        a%=3;
        System.out.println(a);//1
        short s=5;
        s=(short)(s+5);
        s+=10;//s=(short)(s+10)
        System.out.println(s);//20

 */

        /*
        int a=5,b=10,c=5;
        boolean b1=a>b&&c++>2;
        System.out.println(b1);//false
        System.out.println(c);//5
        boolean b2=a<=b&&c++>2;
        System.out.println(b2);//true
        System.out.println(c);//6
        boolean b3=a>=b||c-->5;
        System.out.println(b3);//true
        System.out.println(c);//5
        boolean b4=a<=b||--c>3;
        System.out.println(b4);//true
        System.out.println(c);//5

         */

        /*
        int a=5,b=10,c=5;
        System.out.println(a>b||b<c);
        System.out.println(a>=b||b>=c);
        System.out.println(a<b||b<=c);

         */

        /*
        int a=5,b=10,c=5;
        System.out.println(b>=a|| b>c);//true
        System.out.println(b<=a||b<c);//false
        System.out.println(b!=c||b>a);//true
        System.out.println(a==b||b<a);//false
        int score=900;
        System.out.println(score<0||score>100);//true
        boolean b2=!(a<b);//false
        System.out.println(b2);
        System.out.println(!(a>b));//true

         */
        /*
        int a=5,b=10,c=5;
        boolean b1=a>b&&b>c;
        System.out.println(b1);
        System.out.println(b<=c&&b>a);
        System.out.println(a>=b&&b<c);
        System.out.println(a==c&&b>a);
        int age=10;
        System.out.println(age>18&&age<50);
        int score=78;
        System.out.println(score>60&&score<100);

         */

        /*
        int a=5,b=10,c=5;
        boolean b1=b>=a&&b<c;
        System.out.println(b1);//false
        System.out.println(b<=c&&b>a);//false
        System.out.println(a==c&&a<b);//true
        System.out.println(b!=c&&b>a);//true
        int age=99;
        System.out.println(age>=0&&age<=50);//false
        int score=89;
        System.out.println(score>=0&&score<=100);//true

         */


        /*
        int a=5,b=10,c=5;
        boolean b1=a>b;
        System.out.println(b1);//false
        System.out.println(c<b);//true
        System.out.println(a>=b);//false
        System.out.println(b<=c);//false
        System.out.println(a==c);//true
        System.out.println(a!=c);//false
        System.out.println(a%2==0);//false
        System.out.println(a+c>b);//false
        System.out.println(a++>5);//false,a自增后变为6
        System.out.println(a++>5);//true,a自增后变为7

         */







        /*
        int a=5;
        int b=5;
        a--;
        --b;
        System.out.println(a);//4
        System.out.println(b);//4
        int c=a--;
        int d=--b;
        System.out.println(a);//3
        System.out.println(b);//3
        System.out.println(c);//4
        System.out.println(d);//3

         */

        /*
        int a=6,b=7;
        a++;
        ++b;
        System.out.println(a);//7
        System.out.println(b);//8
        int c=++a;
        int d=b++;
        System.out.println(c);//8
        System.out.println(d);//8
        System.out.println(a);//8
        System.out.println(b);//9

         */



        /*
        int a=5,b=5;
        int c=a++;
        int d=++b;
        System.out.println(a);//6
        System.out.println(b);//6
        System.out.println(c);//5
        System.out.println(d);//6
        a++;
        ++b;
        System.out.println(a);//7
        System.out.println(b);//7

         */

    }
}
